<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
        <input type="text" name="box" value="请输入" id="hi">
        <script>
            var zobj =document.getElementById('hi');//读取属性   //元素对象.属性名
            console.log(zobj.type);                 //自定义对象的读取方式   //元素对象.getAttribute("属性名")
        </script>
</body>
</html>